package org.jgs1904.AbstractFactory.impl;

import org.jgs1904.AbstractFactory.AbstractHumanFactory;
import org.jgs1904.AbstractFactory.Man;
import org.jgs1904.AbstractFactory.Woman;
import org.jgs1904.AbstractFactory.iextends.YellowMan;
import org.jgs1904.AbstractFactory.iextends.YellowWoman;

/**
 * @author 墨苍璃
 * @date 2023年07月10日15时35分
 * <p>
 * 具体人种 实现工厂
 */
public class YellowHumanFactory implements AbstractHumanFactory {

    @Override
    public Man creatMan() {
        return new YellowMan();
    }

    @Override
    public Woman creatWoman() {
        return new YellowWoman();
    }

}
